/*    */ package com.infoservice.schedule.po;
/*    */ 
/*    */ import com.infoservice.po3.core.callback.DAOCallback;
/*    */ import com.infoservice.schedule.ScheduleException;
/*    */ import com.infoservice.schedule.generator.TaskPlanInfo;
/*    */ import java.sql.ResultSet;
/*    */ import java.sql.SQLException;
/*    */ import org.apache.log4j.Logger;
/*    */ 
/*    */ public class TaskPlanInfoCallBack
/*    */   implements DAOCallback<TaskPlanInfo>
/*    */ {
/* 31 */   private Logger logger = Logger.getLogger(TaskPlanInfoCallBack.class);
/*    */ 
/*    */   public TaskPlanInfo wrapper(ResultSet rs, int idx)
/*    */   {
/* 36 */     TaskPlanInfo tpInfo = null;
/*    */     try {
/* 38 */       tpInfo = new TaskPlanInfo();
/* 39 */       tpInfo.setP1Name(rs.getString("P1NAME"));
/* 40 */       tpInfo.setP1value(rs.getString("P1VALUE"));
/* 41 */       tpInfo.setP2Name(rs.getString("P2NAME"));
/* 42 */       tpInfo.setP2value(rs.getString("P2VALUE"));
/* 43 */       tpInfo.setP3Name(rs.getString("P3NAME"));
/* 44 */       tpInfo.setP3value(rs.getString("P3VALUE"));
/* 45 */       tpInfo.setP4Name(rs.getString("P4NAME"));
/* 46 */       tpInfo.setP4value(rs.getString("P4VALUE"));
/* 47 */       tpInfo.setP5Name(rs.getString("P5NAME"));
/* 48 */       tpInfo.setP5value(rs.getString("P5VALUE"));
/* 49 */       tpInfo.setPlanEnd(rs.getString("PLAN_END"));
/* 50 */       tpInfo.setPlanId(Long.valueOf(rs.getLong("PLAN_ID")));
/* 51 */       tpInfo.setPlanIgnoreFlag(Integer.valueOf(rs.getInt("PLAN_IGNORE_FLAG")));
/* 52 */       tpInfo.setPlanPattern(rs.getString("PLAN_PATTERN"));
/* 53 */       tpInfo.setPlanPriority(Integer.valueOf(rs.getInt("PLAN_PRIORITY")));
/* 54 */       tpInfo.setPlanRepeatType(rs.getString("PLAN_REPEAT_TYPE"));
/* 55 */       tpInfo.setPlanRunType(Integer.valueOf(rs.getInt("PLAN_RUN_TYPE")));
/* 56 */       tpInfo.setPlanStart(rs.getString("PLAN_START"));
/* 57 */       tpInfo.setPlanStartTimeout(Integer.valueOf(rs.getInt("PLAN_START_TIMEOUT")));
/* 58 */       tpInfo.setPlanStatus(Integer.valueOf(rs.getInt("PLAN_STATUS")));
/* 59 */       tpInfo.setTaskId(Long.valueOf(rs.getLong("TASK_ID")));
/* 60 */       tpInfo.setTaskInterval(Integer.valueOf(rs.getInt("TASK_INTERVAL")));
/* 61 */       tpInfo.setTaskManual(rs.getString("TASK_MANUAL"));
/* 62 */       return tpInfo;
/*    */     } catch (SQLException e) {
/* 64 */       this.logger.error(e.getMessage(), e);
/* 65 */     }throw new ScheduleException(null, null, e);
/*    */   }
/*    */ }

/* Location:           D:\Workspace\Work\ASMP_DE\lib\frame3\InfoSchedule_1.0.03.jar
 * Qualified Name:     com.infoservice.schedule.po.TaskPlanInfoCallBack
 * JD-Core Version:    0.6.0
 */